<?php $districtTransactions = $data->getDistrictTransactions(); ?>

<?php if (count($districtTransactions) == 1): ?>
	<a href="<?php echo $this->createUrl('/transaction/default', array('id' => $districtTransactions[0]->id)); ?>" class="blue link">
		<?php echo (!empty($districtTransactions[0]->property->prop_address_formatted) ? $districtTransactions[0]->property->prop_address_formatted : '#' . $districtTransactions[0]->case_number); ?>
	</a>
<?php elseif (count($districtTransactions) > 1): ?>
	<ul class="unordered-list" style="margin-bottom">
		<?php foreach ($districtTransactions as $propertyCase): ?>
			<li>
				<a href="<?php echo $this->createUrl('/transaction/default', array('id' => $propertyCase->id)); ?>" class="blue link">
					<?php echo (!empty($propertyCase->property->prop_address_formatted) ? $propertyCase->property->prop_address_formatted : '#' . $propertyCase->case_number); ?>
				</a>
			</li>
		<?php endforeach; ?>
	</ul>
<?php else: ?>
	(None)
<?php endif; ?>